package com.ziyun.erp.common.e.order;

import com.ziyun.erp.common.e.BaseEnum;

/**
 * @author gaosheng
 * @Description: 订单生产状态
 */
public enum ProductionStatusEnum implements BaseEnum{

    UN_AUDITED(1, "待审核"),
    UN_ALLOT(2, "待分配"),
    IN_PRODUCTION(3, "生产中"),
    PRODUCTION_FINISH(4, "生产完成"),
    DELIVERED(5, "已发货"),
    FINISH(6, "已完成"),
    NEW_ORDER(7, "新开单"),
    ABNORMAL(8, "异常单"),
    CANCELLED(11, "已作废"),
    ;

    private int id;
    private String describe;

    ProductionStatusEnum(int id, String describe){
        this.id = id;
        this.describe = describe;
    }

    @Override
    public int toInt() {
        return id;
    }

    @Override
    public String toCode() {
        return null;
    }

    @Override
    public String toDescribe() {
        return describe;
    }
}
